3.364 \(\int \cos ^m(c+d x) (b \cos (c+d x))^{2/3} (A+B \cos (c+d x)+C \cos ^2(c+d x)) \, dx\)

Optimal. Leaf size=229 \[ -\frac {3 (A (3 m+8)+C (3 m+5)) \sin (c+d x) (b \cos (c+d x))^{2/3} \cos ^{m+1}(c+d x) \, _2F_1\left (\frac {1}{2},\frac {1}{6} (3 m+5);\frac {1}{6} (3 m+11);\cos ^2(c+d x)\right )}{d (3 m+5) (3 m+8) \sqrt {\sin ^2(c+d x)}}-\frac {3 B \sin (c+d x) (b \cos (c+d x))^{2/3} \cos ^{m+2}(c+d x) \, _2F_1\left (\frac {1}{2},\frac {1}{6} (3 m+8);\frac {1}{6} (3 m+14);\cos ^2(c+d x)\right )}{d (3 m+8) \sqrt {\sin ^2(c+d x)}}+\frac {3 C \sin (c+d x) (b \cos (c+d x))^{2/3} \cos ^{m+1}(c+d x)}{d (3 m+8)} \]

[Out]

3*C*cos(d*x+c)^(1+m)*(b*cos(d*x+c))^(2/3)*sin(d*x+c)/d/(8+3*m)-3*(C*(5+3*m)+A*(8+3*m))*cos(d*x+c)^(1+m)*(b*cos
(d*x+c))^(2/3)*hypergeom([1/2, 5/6+1/2*m],[11/6+1/2*m],cos(d*x+c)^2)*sin(d*x+c)/d/(9*m^2+39*m+40)/(sin(d*x+c)^
2)^(1/2)-3*B*cos(d*x+c)^(2+m)*(b*cos(d*x+c))^(2/3)*hypergeom([1/2, 4/3+1/2*m],[7/3+1/2*m],cos(d*x+c)^2)*sin(d*
x+c)/d/(8+3*m)/(sin(d*x+c)^2)^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.21, antiderivative size = 219, normalized size of antiderivative = 0.96, number of steps used = 5, number of rules used = 4, integrand size = 41, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.098, Rules used = {20, 3023, 2748, 2643} \[ -\frac {3 \left (\frac {A}{3 m+5}+\frac {C}{3 m+8}\right ) \sin (c+d x) (b \cos (c+d x))^{2/3} \cos ^{m+1}(c+d x) \, _2F_1\left (\frac {1}{2},\frac {1}{6} (3 m+5);\frac {1}{6} (3 m+11);\cos ^2(c+d x)\right )}{d \sqrt {\sin ^2(c+d x)}}-\frac {3 B \sin (c+d x) (b \cos (c+d x))^{2/3} \cos ^{m+2}(c+d x) \, _2F_1\left (\frac {1}{2},\frac {1}{6} (3 m+8);\frac {1}{6} (3 m+14);\cos ^2(c+d x)\right )}{d (3 m+8) \sqrt {\sin ^2(c+d x)}}+\frac {3 C \sin (c+d x) (b \cos (c+d x))^{2/3} \cos ^{m+1}(c+d x)}{d (3 m+8)} \]

Antiderivative was successfully verified.

[In]

Int[Cos[c + d*x]^m*(b*Cos[c + d*x])^(2/3)*(A + B*Cos[c + d*x] + C*Cos[c + d*x]^2),x]

[Out]

(3*C*Cos[c + d*x]^(1 + m)*(b*Cos[c + d*x])^(2/3)*Sin[c + d*x])/(d*(8 + 3*m)) - (3*(A/(5 + 3*m) + C/(8 + 3*m))*
Cos[c + d*x]^(1 + m)*(b*Cos[c + d*x])^(2/3)*Hypergeometric2F1[1/2, (5 + 3*m)/6, (11 + 3*m)/6, Cos[c + d*x]^2]*
Sin[c + d*x])/(d*Sqrt[Sin[c + d*x]^2]) - (3*B*Cos[c + d*x]^(2 + m)*(b*Cos[c + d*x])^(2/3)*Hypergeometric2F1[1/
2, (8 + 3*m)/6, (14 + 3*m)/6, Cos[c + d*x]^2]*Sin[c + d*x])/(d*(8 + 3*m)*Sqrt[Sin[c + d*x]^2])

Rule 20

Int[(u_.)*((a_.)*(v_))^(m_)*((b_.)*(v_))^(n_), x_Symbol] :> Dist[(b^IntPart[n]*(b*v)^FracPart[n])/(a^IntPart[n
]*(a*v)^FracPart[n]), Int[u*(a*v)^(m + n), x], x] /; FreeQ[{a, b, m, n}, x] &&  !IntegerQ[m] &&  !IntegerQ[n]
&&  !IntegerQ[m + n]

Rule 2643

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(Cos[c + d*x]*(b*Sin[c + d*x])^(n + 1)*Hypergeomet
ric2F1[1/2, (n + 1)/2, (n + 3)/2, Sin[c + d*x]^2])/(b*d*(n + 1)*Sqrt[Cos[c + d*x]^2]), x] /; FreeQ[{b, c, d, n
}, x] &&  !IntegerQ[2*n]

Rule 2748

Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[c, Int[(b*S
in[e + f*x])^m, x], x] + Dist[d/b, Int[(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]

Rule 3023

Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (
f_.)*(x_)]^2), x_Symbol] :> -Simp[(C*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m + 1))/(b*f*(m + 2)), x] + Dist[1/(b*
(m + 2)), Int[(a + b*Sin[e + f*x])^m*Simp[A*b*(m + 2) + b*C*(m + 1) + (b*B*(m + 2) - a*C)*Sin[e + f*x], x], x]
, x] /; FreeQ[{a, b, e, f, A, B, C, m}, x] &&  !LtQ[m, -1]

Rubi steps

\begin {align*} \int \cos ^m(c+d x) (b \cos (c+d x))^{2/3} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx &=\frac {(b \cos (c+d x))^{2/3} \int \cos ^{\frac {2}{3}+m}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx}{\cos ^{\frac {2}{3}}(c+d x)}\\ &=\frac {3 C \cos ^{1+m}(c+d x) (b \cos (c+d x))^{2/3} \sin (c+d x)}{d (8+3 m)}+\frac {\left (3 (b \cos (c+d x))^{2/3}\right ) \int \cos ^{\frac {2}{3}+m}(c+d x) \left (\frac {1}{3} \left (3 C \left (\frac {5}{3}+m\right )+3 A \left (\frac {8}{3}+m\right )\right )+\frac {1}{3} B (8+3 m) \cos (c+d x)\right ) \, dx}{(8+3 m) \cos ^{\frac {2}{3}}(c+d x)}\\ &=\frac {3 C \cos ^{1+m}(c+d x) (b \cos (c+d x))^{2/3} \sin (c+d x)}{d (8+3 m)}+\frac {\left (B (b \cos (c+d x))^{2/3}\right ) \int \cos ^{\frac {5}{3}+m}(c+d x) \, dx}{\cos ^{\frac {2}{3}}(c+d x)}+\frac {\left ((C (5+3 m)+A (8+3 m)) (b \cos (c+d x))^{2/3}\right ) \int \cos ^{\frac {2}{3}+m}(c+d x) \, dx}{(8+3 m) \cos ^{\frac {2}{3}}(c+d x)}\\ &=\frac {3 C \cos ^{1+m}(c+d x) (b \cos (c+d x))^{2/3} \sin (c+d x)}{d (8+3 m)}-\frac {3 \left (\frac {A}{5+3 m}+\frac {C}{8+3 m}\right ) \cos ^{1+m}(c+d x) (b \cos (c+d x))^{2/3} \, _2F_1\left (\frac {1}{2},\frac {1}{6} (5+3 m);\frac {1}{6} (11+3 m);\cos ^2(c+d x)\right ) \sin (c+d x)}{d \sqrt {\sin ^2(c+d x)}}-\frac {3 B \cos ^{2+m}(c+d x) (b \cos (c+d x))^{2/3} \, _2F_1\left (\frac {1}{2},\frac {1}{6} (8+3 m);\frac {1}{6} (14+3 m);\cos ^2(c+d x)\right ) \sin (c+d x)}{d (8+3 m) \sqrt {\sin ^2(c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.44, size = 166, normalized size = 0.72 \[ -\frac {3 \sin (c+d x) (b \cos (c+d x))^{2/3} \cos ^{m+1}(c+d x) \left ((A (3 m+8)+C (3 m+5)) \, _2F_1\left (\frac {1}{2},\frac {1}{6} (3 m+5);\frac {1}{6} (3 m+11);\cos ^2(c+d x)\right )+(3 m+5) \left (B \cos (c+d x) \, _2F_1\left (\frac {1}{2},\frac {1}{6} (3 m+8);\frac {m}{2}+\frac {7}{3};\cos ^2(c+d x)\right )-C \sqrt {\sin ^2(c+d x)}\right )\right )}{d (3 m+5) (3 m+8) \sqrt {\sin ^2(c+d x)}} \]

Antiderivative was successfully verified.

[In]

Integrate[Cos[c + d*x]^m*(b*Cos[c + d*x])^(2/3)*(A + B*Cos[c + d*x] + C*Cos[c + d*x]^2),x]

[Out]

(-3*Cos[c + d*x]^(1 + m)*(b*Cos[c + d*x])^(2/3)*Sin[c + d*x]*((C*(5 + 3*m) + A*(8 + 3*m))*Hypergeometric2F1[1/
2, (5 + 3*m)/6, (11 + 3*m)/6, Cos[c + d*x]^2] + (5 + 3*m)*(B*Cos[c + d*x]*Hypergeometric2F1[1/2, (8 + 3*m)/6,
7/3 + m/2, Cos[c + d*x]^2] - C*Sqrt[Sin[c + d*x]^2])))/(d*(5 + 3*m)*(8 + 3*m)*Sqrt[Sin[c + d*x]^2])

________________________________________________________________________________________

fricas [F]  time = 0.87, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{\frac {2}{3}} \cos \left (d x + c\right )^{m}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^m*(b*cos(d*x+c))^(2/3)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2),x, algorithm="fricas")

[Out]

integral((C*cos(d*x + c)^2 + B*cos(d*x + c) + A)*(b*cos(d*x + c))^(2/3)*cos(d*x + c)^m, x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{\frac {2}{3}} \cos \left (d x + c\right )^{m}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^m*(b*cos(d*x+c))^(2/3)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2),x, algorithm="giac")

[Out]

integrate((C*cos(d*x + c)^2 + B*cos(d*x + c) + A)*(b*cos(d*x + c))^(2/3)*cos(d*x + c)^m, x)

________________________________________________________________________________________

maple [F]  time = 0.51, size = 0, normalized size = 0.00 \[ \int \left (\cos ^{m}\left (d x +c \right )\right ) \left (b \cos \left (d x +c \right )\right )^{\frac {2}{3}} \left (A +B \cos \left (d x +c \right )+C \left (\cos ^{2}\left (d x +c \right )\right )\right )\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(d*x+c)^m*(b*cos(d*x+c))^(2/3)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2),x)

[Out]

int(cos(d*x+c)^m*(b*cos(d*x+c))^(2/3)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2),x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{\frac {2}{3}} \cos \left (d x + c\right )^{m}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^m*(b*cos(d*x+c))^(2/3)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2),x, algorithm="maxima")

[Out]

integrate((C*cos(d*x + c)^2 + B*cos(d*x + c) + A)*(b*cos(d*x + c))^(2/3)*cos(d*x + c)^m, x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.00 \[ \int {\cos \left (c+d\,x\right )}^m\,{\left (b\,\cos \left (c+d\,x\right )\right )}^{2/3}\,\left (C\,{\cos \left (c+d\,x\right )}^2+B\,\cos \left (c+d\,x\right )+A\right ) \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(c + d*x)^m*(b*cos(c + d*x))^(2/3)*(A + B*cos(c + d*x) + C*cos(c + d*x)^2),x)

[Out]

int(cos(c + d*x)^m*(b*cos(c + d*x))^(2/3)*(A + B*cos(c + d*x) + C*cos(c + d*x)^2), x)

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)**m*(b*cos(d*x+c))**(2/3)*(A+B*cos(d*x+c)+C*cos(d*x+c)**2),x)

[Out]

Timed out

________________________________________________________________________________________